<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		
		<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<link href="images/workspace.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
		<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" />
		<script src="../js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
		<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
		<script src="js/crm.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
		<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
		<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
		<title>后台管理</title>
	</head>
	
	<body class="body_ifm">
	<div class="infoboxp">
		<div class="clear"></div>

		<div class="tabs_info">
           	<ul>
               	<li class="curr"><a href="index.php?m=crm_worklog">工作日志</a></li>
               
           	</ul>
		   </div>
	<form class="layui-form" action="index.php" name="myform" method="get" id='myform' target="supportiframe">
					<input type="hidden" name="pytoken"  id='pytoken' value="{yun:}$pytoken{/yun}">
					<input name="m" value="crm_worklog" type="hidden"/>	
                 	<div class="crm_newly_build_tit" style="padding:0">
														 <div class="layui-input-inline">
															<div class="crm_follow_up"><a href="javascript:void(0);" onClick='addWorkLog()' class="crm_follow_up_a crm_follow_up_xj">新建日志</a></div>
														  </div>
													</div>   <div class="table-list" style="color:#898989; margin-top:10px;">
			<div class="admin_table_border">	
				<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
				
					
					<table width="100%">
						<thead>
								
							<tr class="admin_table_top">
								<th align="left" style="width:150px;">录入时间</th>
								<th align="left" >标题</th>
								
								<th align="left" style="width:800px;">任务内容</th>
								
	 							<th style="width:80px;">操作</th>
							</tr>
						</thead>
						
						<tbody>
						
							{yun:}foreach item=v key=key from=$tasks{/yun}
							
								<tr align="center" {yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">
									<td align="left">
											<a href="javascript:showWorkLog('{yun:}$v.id{/yun}','index.php?m=crm_worklog&c=detail')" title="日志详情">{yun:}$v.ctime|date_format:"%Y-%m-%d %H:%M"{/yun}</a>
									</td>
									<td align="left">
											{yun:}$v.title{/yun}
										</td>
									<td align="left">
										{yun:}$v.content{/yun}
									</td>
									<td>
											<a href="javascript:void(0);" onClick="layer_del('确定要删除？', 'index.php?m=crm_worklog&c=del&id={yun:}$v.id{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc mt5">删除</a>
									</td>
								</tr>
	
							{yun:}/foreach{/yun}
							
							{yun:}if $total > $config.sy_listnum {/yun}
								<tr>
									{yun:}if $pagenum==1{/yun}
										<td colspan="4"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
									{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
										<td colspan="4"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
									{yun:}else if $pagenum == $pages{/yun}
										<td colspan="4"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
									{yun:}/if{/yun}
									<td colspan="4" class="digg">{yun:}$pagenav{/yun}</td>
								</tr>
							{yun:}/if{/yun}
						</tbody>
					</table>
			
			</div>	
		</div></form>
	</div>
	<div id='worklogshow' style='display:none;'>
			<table class="layui-table" lay-skin='line'>
				  <colgroup>
					<col width="100">
					<col width="250">
				  </colgroup>
				  <tbody>
					<tr><td>日志标题：</td><td id='logtitleshow'></td></tr>
					<tr><td>日志内容：</td><td id='logcontentshow'></td></tr>
				  </tbody>
			</table>
		</div>

 <script>
var weburl="{yun:}$config.sy_weburl{/yun}";
layui.use(['form', 'laydate'], function(){
	var form = layui.form
		,laydate = layui.laydate
		,$ = layui.$;
});
 </script>
 {yun:}include file="siteadmin/crm_public.htm"{/yun}
</body>
</html>